package com.share.mapper;

import com.share.domain.User;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Repository;

/**
 * caifan 2017/9/3
 */
@MapperScan
@Repository
public interface UserMapper {
    /**
     * 根据用户id查询用户
     */
    //@Select("select * from user where id = #{id}")
    public User findById(Long id);

    /**
     * 查询所有的用户
     */
  /*  @Select("select * from user")
    public List<User> findAllUser();*/

  public void insertUser(User user);
}
